package org.smartbird
{
	public class User extends BasicSBSObject
	{
		public var id:int;
		public var currentRoomId:int;
		public var userVariables:Object;
		private var _sbs:SmartBirdClient;
		
		public function User(sbs:SmartBirdClient)
		{
			this._sbs = sbs;
			this.userVariables = new Object();
		}

		public function getCurrentRoom():Room 
		{
			return _sbs.roomManager.getRoomById(currentRoomId);
		}
		
		public function get isItMe():Boolean
		{
			return _sbs.mySelf == this;
		}
	}
}